import {postJson} from '../http'

function listRecord(tableName, rowKeyPattern) {
  return postJson('/listRecord', {tableName, rowKeyPattern})
}

function createRecord(tableName, records) {
  return postJson('/createRecord', {tableName, records})
}

function deleteRecord(tableName, rowKeys) {
  return postJson('/deleteRecord', {tableName, rowKeys})
}

export default {listRecord, createRecord, deleteRecord}
